﻿using EntGuayasSLA.BL;
using EntGuayasSLA.BL.Listas;
using EntGuayasSLA.BL.Listas.Criterias;
using Ext.Net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace EGuayas.Web.Licenciamiento.promotor.tabs
{
    public partial class wucPartSoc : ucWuc
    {
        
        protected String PageId
        {
            get
            {
                return ReadCustomConfigPage(this.pnlActivida, this.ID);
            }

        }
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                    if (!X.IsAjaxRequest)
                    {
                        InitWuc();
                    }
            }
            catch (Exception ex)
            {
                RegistrarLog("wucPartSoc.Page_Load" + ex);
            }
        }
        public void InitWuc()
        {
                  
           BindDataActPartSoc();
           
        }
        [DirectMethod]
        private void BindDataActPartSoc()
        {
            try
            {
                if (HttpContext.Current.Session[PageId + Constantes.ExpedienteLic] != null)
                {
                    this.stoActSocial.DataSource = ParticipacionSocialLista.GetParticipacionSocialLista(GetSessionPage.ExpedienteLic(PageId));
                    this.stoActSocial.DataBind();
                }
            }
            catch (Exception ex)
            {
                RegistrarLog("wucPartSoc.BindDataActPartSoc " + ex);
            }
        }
      
       
      
    }
}